package cn.kgc.disk.service;

import cn.kgc.disk.Dao.Disk;

public class BeanFactory1 {
    public void setDisk(Disk disk) {
        this.disk = disk;
    }

    private Disk disk;
    public void factory(){
        System.out.println("解耦和");
        disk.write();
    }


}
